<?php



class ReviewsMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ReviewsMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('reviews');
		$tMap->setPhpName('Reviews');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('REVIEWS_ID', 'ReviewsId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PRODUCTS_ID', 'ProductsId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CUSTOMERS_ID', 'CustomersId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('CUSTOMERS_NAME', 'CustomersName', 'string', CreoleTypes::VARCHAR, true, 64);

		$tMap->addColumn('REVIEWS_RATING', 'ReviewsRating', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DATE_ADDED', 'DateAdded', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('LAST_MODIFIED', 'LastModified', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('REVIEWS_READ', 'ReviewsRead', 'int', CreoleTypes::INTEGER, true, null);

	} 
} 